home *** CD-ROM | disk | FTP | other *** search
-
-
-
- llllooooggggiiiiccccoooopppp((((3333GGGG)))) llllooooggggiiiiccccoooopppp((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- llllooooggggiiiiccccoooopppp - specifies a logical operation for pixel writes
-
- CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- vvvvooooiiiidddd llllooooggggiiiiccccoooopppp((((ooooppppccccooooddddeeee))))
- lllloooonnnngggg ooooppppccccooooddddeeee;;;;
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _o_p_c_o_d_e expects one of the 16 possible logical operations.
-
- Symbol Operation
-
- LLLLOOOO____ZZZZEEEERRRROOOO 0
- LLLLOOOO____AAAANNNNDDDD src AND dst
- LLLLOOOO____AAAANNNNDDDDRRRR src AND (NOT dst)
- LLLLOOOO____SSSSRRRRCCCC src
- LLLLOOOO____AAAANNNNDDDDIIII (NOT src) AND dst
- LLLLOOOO____DDDDSSSSTTTT dst
- LLLLOOOO____XXXXOOOORRRR src XOR dst
- LLLLOOOO____OOOORRRR src OR dst
- LLLLOOOO____NNNNOOOORRRR NOT (src OR dst)
- LLLLOOOO____XXXXNNNNOOOORRRR NOT (src XOR dst)
- LLLLOOOO____NNNNDDDDSSSSTTTT NOT dst
- LLLLOOOO____OOOORRRRRRRR src OR (NOT dst)
- LLLLOOOO____NNNNSSSSRRRRCCCC NOT src
- LLLLOOOO____OOOORRRRIIII (NOT src) OR dst
- LLLLOOOO____NNNNAAAANNNNDDDD NOT (src AND dst)
- LLLLOOOO____OOOONNNNEEEE 1
-
- Only the lower 4 bits of _o_p_c_o_d_e are used.
-
- The values of LO_SRC and LO_DST have been chosen so that
- expressing an operation as the equivalent combination of them
- and the C bitwise operators generates an acceptable _o_p_c_o_d_e
- value; e.g., LO_NAND can be written as ~(LO_SRC & LO_DST) .
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- llllooooggggiiiiccccoooopppp specifies the bit-wise logical operation for pixel writes. The
- logical operation is applied between the source pixel value (incoming
- value) and existing destination value (previous value) to generate the
- final pixel value. In colorindex mode all of the (up to 12) writemask
- enabled index bits are changed. In RGB mode all of the (up to 32)
- enabled component bits are changed.
-
- llllooooggggiiiiccccoooopppp defaults to LO_SRC, meaning that the incoming source value simply
- replaces the current (destination) value.
-
- It is not possible to do logical operations and blend simultaneously.
- When opcode is set to any value other than LO_SRC, the blendfunction
- _s_f_a_c_t_r and _d_f_a_c_t_r values are forced to BF_ONE and BF_ZERO repectively
- (their default values). Likewise, calling bbbblllleeeennnnddddffffuuuunnnnccccttttiiiioooonnnn with arguments
- other than BF_ONE and BF_ZERO forces the logical opcode to LO_SRC,
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- llllooooggggiiiiccccoooopppp((((3333GGGG)))) llllooooggggiiiiccccoooopppp((((3333GGGG))))
-
-
-
- Unlike bbbblllleeeennnnddddffffuuuunnnnccccttttiiiioooonnnn,,,, llllooooggggiiiiccccoooopppp is valid in all drawing modes (NORMALDRAW,
- UNDERDRAW, OVERDRAW, PUPDRAW, CURSORDRAW) and in both colorindex and RGB
- modes. Like the blendfunction, it affects all drawing operations,
- including points, lines, polygons, and pixel area transfers.
-
- When multiple destination buffers are specified (using ffffrrrroooonnnnttttbbbbuuuuffffffffeeeerrrr,,,,
- bbbbaaaacccckkkkbbbbuuuuffffffffeeeerrrr,,,, and zzzzddddrrrraaaawwww ) only a single location is read and used during
- the logical operation. By default, the destination value is read from
- the front buffer in single buffer mode and from the back buffer in double
- buffer mode. If the front buffer is not enabled in single buffer mode,
- the value is taken from the z-buffer. If the back buffer is not enabled
- in double buffer mode, the value is taken from the front buffer (if
- possible) or from the z-buffer.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- blendfunction, gversion, getgdesc
-
- NNNNOOOOTTTTEEEESSSS
- The numeric assignments of the 16 operation names were chosen to be
- identical to those defined by the X Window System. They will not be
- changed in future software releases.
-
- This routine does not function on IRIS-4D B and G models, nor does it
- function on early serial numbers of the Personal Iris. Use ggggvvvveeeerrrrssssiiiioooonnnn to
- determine which type you have.
-
- Some IRIS-4D GT and GTX models do support this routine. Use ggggeeeettttggggddddeeeesssscccc to
- determine if llllooooggggiiiiccccoooopppp is supported.
-
- BBBBUUUUGGGGSSSS
- Personal Iris models do not support logical operations in combination
- with non-solid patterns nor with zoomed pixel writes or copies. When
- either of these features is selected, the default logical operation,
- LO_SRC, will be used regardless of the value passed to llllooooggggiiiiccccoooopppp.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-